#pragma once
#include <cocos2d.h>

USING_NS_CC;

class GameBackground : public CCNode
{
public:
	GameBackground(void);
	~GameBackground(void);

	virtual bool init();
	virtual void onEnter();
	virtual void onExit();
	void processing(float dt);

	CC_SYNTHESIZE(float, _velocityY, VelocityY);
	CC_SYNTHESIZE_RETAIN(CCArray*, _listBg, ListBackground);
	CC_SYNTHESIZE_RETAIN(CCArray*, _listClound, ListClound);
	
	CC_SYNTHESIZE(float, _speedUpFactor, SpeedUpFactor);
	CREATE_FUNC(GameBackground);

	float _currentTime;
	float _timeClound;
};

